﻿// JScript 文件

function pro(n) 
{ 
  var div1 = document.getElementById('pro1'); 
  var div2 = document.getElementById('pro2'); 
  var div3 = document.getElementById('pro3'); 
  var div4 = document.getElementById('pro4');
  var div5 = document.getElementById('pro5');
  
  var li1 =  document.getElementById('li1'); 
  var li2 =  document.getElementById('li2');  
  var li3 =  document.getElementById('li3'); 
  var li4 =  document.getElementById('li4'); 
  var li5 =  document.getElementById('li5');        
        
  if(n == 1) 
  { 
     div1.style.display = "block";
     li1.className = "Current";
     
     div2.style.display = "none"; 
     li2.className = "";
     
     div3.style.display = "none";  
     li3.className = "";   
     
     div4.style.display = "none";  
     li4.className = "";   
     
     div5.style.display = "none";  
     li5.className = "";   
                               
  }

  if(n == 2) 
  { 
    div1.style.display = "none"; 
    li1.className = "";
    
    div2.style.display = "block";
    li2.className = "Current"; 
    
    div3.style.display = "none"; 
    li3.className = ""; 
    
    div4.style.display = "none";  
    li4.className = "";   
     
    div5.style.display = "none";  
    li5.className = "";                                
  }

  if(n == 3) 
  { 
    div1.style.display = "none";
    li1.className = ""; 
    
    div2.style.display = "none"; 
    li2.className = "";
    
    div3.style.display = "block";   
    li3.className = "Current";
    
    div4.style.display = "none";  
    li4.className = "";   
     
    div5.style.display = "none";  
    li5.className = "";                               
  }
  
    if(n == 4) 
  { 
    div1.style.display = "none";
    li1.className = ""; 
    
    div2.style.display = "none"; 
    li2.className = "";
    
    div3.style.display = "none";   
    li3.className = "";
    
    div4.style.display = "block";  
    li4.className = "Current";   
     
    div5.style.display = "none";  
    li5.className = "";                               
  }
  
    if(n == 5) 
  { 
    div1.style.display = "none";
    li1.className = ""; 
    
    div2.style.display = "none"; 
    li2.className = "";
    
    div3.style.display = "none";   
    li3.className = "";
    
    div4.style.display = "none";  
    li4.className = "";   
     
    div5.style.display = "block";  
    li5.className = "Current";                               
  }
}